package com.ym.manager.admin.t3;

import com.ym.manager.admin.act.model.Act;
import com.ym.manager.admin.t3.model.T3Info;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface T3Mapper {

    /*活动列表总数*/
    int getListCount(Map<String, Object> map);
    /*活动列表*/
    List<T3Info> getList(Map<String, Object> map);
    /*新增活动*/
    int insert(@Param("info") T3Info t3Info);
    /*修改活动*/
    int update(@Param("info") T3Info t3Info);
    /*数据详情*/
    T3Info detail(int id);
    /*活动上下架*/
    int shelf(@Param("id") int id,
              @Param("status") int status);
    /*删除活动*/
    int delete(int id);
    /*预约列表总数*/
    int getSubscribeCount(Map<String, Object> map);
    /*预约列表*/
    List<Map<String, Object>> getSubscribe(Map<String, Object> map);
    /*人工核销*/
    int subscribeArrival(@Param("uid") int uid,
                         @Param("actId") int actId,
                         @Param("status") int status);
}
